class Cat:
    def eat(self):
        print("%s爱吃鱼" % self.name)
    def drink(self):
        print("%s爱喝水" % self.name)
tom = Cat()

tom.name = "Tom"

tom.eat()
tom.drink()
print(tom)
lazy_cat = Cat()
#给类对象增加一个属性，虽简单不建议使用
lazy_cat.name = "大懒猫"

lazy_cat.eat()
lazy_cat.drink()
print(lazy_cat)

lazy_cat2 = lazy_cat
print(lazy_cat2)